package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration //表示该类是一个配置类
//<context:component-scan base-package="com.itheima"/>
@ComponentScan("com.itheima")
//<context:property-placeholder location="classpath:jdbc.properties"/>
@PropertySource("classpath:jdbc.properties")
//<tx:annotation-driven transaction-manager="transactionManager"/>
@EnableTransactionManagement
@Import({JdbcConfig.class,MybatisConfig.class,TransactionConfig.class})
public class SpringConfiguration {
}
